 
  
    



   <script type="text/javascript" src="/js/jquery.pagination.js"></script>
   <script type="text/javascript">
		$(document).ready(function(){
		var pageIndex = 0;
		var pageSize = <?php echo $pageSize;?>;
		$("#Pagination").pagination(<?php echo $pagecount;?>, { 
		callback: PageCallback, //PageCallback() 为翻页调用次函数。 
		prev_text: "&laquo; 上一页", 
		next_text: "下一页 &raquo;", 
		items_per_page:pageSize, 
		num_edge_entries: 2, //两侧首尾分页条目数 
		num_display_entries: 6, //连续分页主体部分分页条目数 
		current_page: pageIndex //当前页索引 
		});
		function PageCallback(index, jq) { 
			//index == 0 ? index = 1 : index = index;
			InitTable(index); 
			
		} 
		function InitTable(pageIndex) { 
		$.ajax({ 
		type: "POST", 
		dataType: "text", 
		url: '<?PHP echo site_url("tlianmengs/exchangelists");?>/'+(pageIndex), //提交到一般处理程序请求数据 
		
		success: function(data) { 
		$("#Result tr:gt(0)").remove(); //移除Id为Result的表格里的行，从第二行开始（这里根据页面布局不同页变） 
		$("#Result").append(data); //将返回的数据追加到表格 
		} 
		}); 
		} 

		});
		
   </script>
    <!-- Page title -->
    <div id="pagetitle">
 	我的桌面 转发管理
        <div id="titleedit"></div>
 </div>
    <!-- End of Page title -->
    <!-- Page content -->
    <div id="page">
	  <p></p>
      <table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC" id="Result">
          <tr align="center">
            <td width="5%">微博ID</td>
            <td width="25%">昵称</td>
            <td width="10%">兑换物品</td>
            <td width="25%">粉币</td>
            <td width="10%">时间</td>                          
          </tr>
          <tr align="center">
            <td colspan="6"><img src="/img/loading.gif" width="43" height="43" />加载中.....</td>
          </tr>
      </table>
      <div id="Pagination"></div>
       <div class="modal" id="setuser">
      <h2>修改状态</h2>
      <form action="<?=site_url('/tlianmengs/setorder')?>" method="post"><br />
        <input type="submit" class="btn btn-green big" value="修改"/> &nbsp;&nbsp; 
        <span class="close"><input type="button" id="overlayClose" class="btn btn-green big" value="返回" /></span>
        <input type="hidden" name="verification" id="verification" value="<?=$verification?>" />
        
        <input type="hidden" name="order_num" id="order_num" />
      </form>
      </div>
      <script>      
    function aa(order_num) {
		    
			$("#setuser").overlay().load();
		  	$('#order_num').val(order_num);
		  }
	 	$("#setuser").overlay({
			  mask: {
				  color: '#ebecff', 
				  loadSpeed: 200, 
				  opacity: 0.9,
				  close:'#overlayClose'
				  },       
			closeOnClick: false,
			  });
		
			  </script>  
      
    </div>